package Card;

import java.util.ArrayList;
import java.util.List;

public class Test {

    /*public static void main1(String[] args) {
        Game game = new Game();
        List<Card> list = game.buyCard();
        //list = game.buyCard();
        //System.out.println(list);

        game.shuffle(list);

        //System.out.println(list);

        //抓牌
        List<List<Card>> hand = game.play(list);

        //System.out.println(hand);
        for (int i = 0; i < hand.size(); i++) {
            System.out.println("第"+(i+1)+"个人的牌是："+hand.get(i));
        }
        System.out.println("剩下的牌："+hand);
    }*/


    public static void main(String[] args) {
        Game game = new Game();
        List<Card> list = game.createCard();
        //list = game.buyCard();
        //System.out.println(list);

        game.shuffle(list);

        System.out.println(list);

        //抓牌

        List<List<Card>> hand = game.paly(list);//为什么不是List<List<Card>> hand = new game.paly(list);


        for (int i = 0; i < hand.size(); i++) {
            System.out.println("第"+(i+1)+"个人的牌是："+hand.get(i));
        }
        System.out.println(hand);
    }


}
